﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

using CSF.Security.Service;

namespace CSF.Service.Accounts.Client
{
    public class AuthenticateSvcClient : ClientBase<IAuthenticateSvc>, IAuthenticateSvc
    {
        #region IAuthenticateSvc 成员

        public string LogOn(string userName, string password, int applicationId, string ipAddress, string httpForwarded)
        {
            return base.Channel.LogOn(userName, password, applicationId, ipAddress, httpForwarded);
        }

        public void LogOff(string sessionId)
        {
            base.Channel.LogOff(sessionId);
        }

        #endregion


        #region IAuthenticateSvc 成员


        public Security.Data.UserSession VerifySession(string sessionId)
        {
            return base.Channel.VerifySession(sessionId);
        }

        #endregion
    }
}
